/**
 * Created by Mark_ren on 2016/11/28.
 * 苟富贵,無相忘
 */
var express = require('express');
var router = express.Router();
var pfMemberController = require("../../api/v2.0/admin/pfMember_controller.js");


router.get('/', pfMemberController.getPfMemberPage);

router.get('/:id', pfMemberController.getPfMemberById);

router.get('/:meetNum/:type', pfMemberController.getPfPlayerScore);

router.post('/', pfMemberController.addPfMember);

router.post('/updateMember/:meetNum/:type/:id', pfMemberController.updatePfMemberForm);

router.post('/:meetNum/:type', pfMemberController.addPfMemberForm);

router.put('/:id', pfMemberController.updatePfMember);

router.delete('/', pfMemberController.deletePfMember);

module.exports = router;